<?php

namespace app\index\controller;

use think\Controller;
use think\Request;

class Base extends Controller
{
     public function  _initialize()
     {
         if (!session('uid')){
         $this->error('请先登录','Index/login');}
     }
}
